<footer>
<hr>
{{ if or (in (string .Permalink) "/posts/") (in (string .Permalink) "/resepi/") }}
<div class="text-center support-me">
  <small>Has this content solve difficulty that you are facing, helped you or has it taught you something? Please consider <mark><a href="/support">supporting</a></mark> me so I can continue to create content like this!</small>
</div>
{{ end }}
<div style="text-align: center;">
{{- range $index, $key := .Site.Params.Social -}}
<a class="soc" title="{{ $key.name }}"
{{if eq $key.localURL "true"}} href="/{{ $key.url }}" {{else}} href="{{ $key.url }}" target="_blank" rel="me" {{end}}><i class="icon" icon-name="{{ $key.icon }}"></i></a>|
{{- end -}}

<a class="soc" href="{{ .Site.BaseURL }}search" title="search"><i class="icon" icon-name="search"></i></a>|<a class="soc" href="{{ .Site.BaseURL }}index.xml" title="RSS"><i class="icon" icon-name="rss"></i></a>
<!-- Copyright {{ dateFormat "2006" now }} - {{ with .Site.Copyright }} {{ . }} {{ end }} -->
<!-- | <a href="https://github.com/athul/archie">Archie Theme</a> -->
<!-- | Built with <a href="https://gohugo.io">Hugo</a> -->
 <br><a class="soc"><i class="icon" icon-name="copyright"></i>2019-{{ dateFormat "2006" now }}{{ with .Site.Copyright }} {{ . }} </a>{{ end }}
<!-- (Last update on {{ with .Site.LastChange.Format "January 2, 2006" }} {{ . }} {{ end }}) -->
</div>
</footer>

{{- if or (eq .Site.Params.mode "auto") (eq .Site.Params.mode "light") -}}
  <script src="{{ .Site.BaseURL }}js/toggle.dark.js"></script>
{{ end }}

<!-- <script src="{{ .Site.BaseURL }}js/lazysizes.min.js"></script> -->
<script src="{{ .Site.BaseURL }}js/lazysizes.min.js" async as="script"></script>

<script src="/js/webmention.js" data-id="webmentions" data-page-url="{{ .Permalink }}" data-max-webmentions="100"></script>

{{ if .File }}
  {{ if eq .File.Dir "search/" }}{{ partial "search-index.html" . }}{{end}}
{{ end }}

{{- if (isset .Site.Params "social") -}}
<script>
      lucide.createIcons();
</script>
{{- end -}}
